using System.Collections;
using System.Collections.Generic;
using UnityEngine;


//角色控制器
public class Controller : MonoBehaviour
{
    [SerializeField]
    private PlayerMoveProperties playerMoveProperties;
    [SerializeField]
    private PlayerWatchProperties playerWatchProperties;


    private CharacterController controller;
    private CharacterMove moveControl;
    private CharacterView viewControl;



    void Start()
    {
        controller = gameObject.GetComponent<CharacterController>();

        moveControl = new CharacterMove(controller,playerMoveProperties);
        viewControl = new CharacterView(controller,playerWatchProperties);
    }



    void Update()
    {
        moveControl.InputMove();
        viewControl.InputView();
    }
}
